<h1>Creaci&oacute;n del usuario administrador</h1>
<% form_tag :action => 'create_admin' do %>
	<%=  error_messages_for :user %>
	<%=  error_messages_for :instructor %>
	<p><label for="user_login">Login</label><br/>
	<%=  text_field :user, :login, :value=>'admin' %></p>
	
	<p><label for="user_email">Email</label><br/>
	<%=  text_field :user, :email %></p>
	
	<p><label for="instructor_nombre">Instructor (ser&aacute; creado tambi&eacute;n)</label><br/>
	<%=  text_field 'instructor', 'nombre'  %>
	</p>
	
	<%=  hidden_field_tag 'user[role_ids][]', Role.find_by_name('admin').id %>
	
	<p><label for="user_password">Password</label><br/>
	<%=  password_field :user, :password %></p>
	
	<p><label for="user_password_confirmation">Confirm Password</label><br/>
	<%=  password_field :user, :password_confirmation %></p>
	
	<p><%=  submit_tag 'Crear administrador' %></p>
<% end %>